package Problem;

import java.time.LocalDate;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2024/1/16.
// 
public class 星期一数量 {
    public static void main(String[] args) {
        LocalDate date = LocalDate.of(1901,1,1);
        int week = date.getDayOfWeek().getValue();
        int temp=0;
        if (week != 1){
            temp = 7-week;
        }
        int count,day = 0;
        for (int i = date.getYear(); i <= 2000; i++) {
            if(i % 100 ==0 || (i % 4 == 0 && i % 400 != 0)){
                day+=366;
            }else {
                day+=365;
            }
        }
        day -= temp;
        count = day / 7;
        temp = day % 7;
        if(temp + week > 7){
            count++;
        }
        System.out.println(count);
//        long count=0;
//        for (double i = 1901; i <= 2000; i++) {
//            if(i%400==0||(i%100!=0&&i%4==0)){
//                count+=366;
//            }else {
//                count+=365;
//            }
//        }
//        System.out.println(count/7);

    }
}
